package com.cug.nageoffer.enterprise.user.mapper;

import com.cug.nageoffer.model.dto.LoginDto;
import com.cug.nageoffer.model.dto.RegisterDto;
import com.cug.nageoffer.model.entity.EnterpriseUser;
import com.cug.nageoffer.model.vo.Result;
import com.cug.nageoffer.model.vo.ResumeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EnterpriseUserMapper {
    EnterpriseUser selectByUsername(LoginDto loginDto);

    EnterpriseUser selectByPhone(RegisterDto registerDto);

    void insert(EnterpriseUser registerUser);

    void update(EnterpriseUser enterpriseUser);

    EnterpriseUser selectById(Long id);

    Result<List<ResumeVo>> selectResumeById(Long id);
}
